gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Phase 1
Task A :a1, 2024-08-01, 10d
Task B :after a1, 7d
section Phase 2
Task C :2024-08-15, 10d
Task D :after c, 5d
section Phase 3
Task E :2024-09-01, 12d
Task F :after e, 7d
Sample Gantt Chart with Mermaid in Quarto
When you compile this QMD file with Quarto, it will render a Gantt chart showing the project timeline. You can customize the tasks, dates, and durations to match your specific project.
See https://mermaid.js.org/syntax/gantt.html to learn more!
Experimenting with Gantt Charts
This is an example of how to create a Gantt chart using Mermaid in a Quarto document.
Explanation
Gantt Chart Basics: The
ganttkeyword starts the Gantt chart definition.Title and Date Format:
titlesets the title of the chart, anddateFormatdefines the date format used.Sections: The
sectionkeyword creates different phases or sections within the Gantt chart.Tasks: Each task is defined with a label, start date, and duration (e.g.,
10dfor 10 days). Theafterkeyword allows tasks to start after others.